@using DNA.Mvc.Text;
@model ForumWrapper
@if (Model != null)
{
    <table style="width: 100%;">
        <tr>
            @if (!string.IsNullOrEmpty(Model.ImageUrl))
            {
                <td style="width: 64px;">
                    <img src="@Url.Content(Model.ImageUrl)" alt="@Model.Title" />
                </td>  
            }
            <td style="vertical-align: top;">
                <h1 class="d-page-title">
                    @Model.Title &nbsp;<a style="margin:0px 5px;float: right;" href="@Url.Action("Rss", "Forum", new { Area = "Community", id = Model.ID })" target="_blank">
                        <img src="@Url.Content("~/Content/Images/rss.png")" alt="" /></a><g:plusone size="small"></g:plusone></h1>
                <div class="d-page-desc">@Model.Description</div>
            </td>
        </tr>
        @if ((Model.Moderators != null) && (Model.Moderators.Count > 0))
        {
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <ul class="d-horizontal-list">
                        <li>@Html.Global("forums", "Moderators") : </li>
                        @foreach (var m in Model.Moderators)
                        { 
                            <li>@Html.UserLink(m.UserName)</li>
                        }
                    </ul>
                </td>
            </tr>
        }
    </table>
    <div style="padding: 5px">
        @{
        Html.RenderPartial("_Forums", Model.SubForums);
        }
    </div>
    <div style="padding: 5px">
        @{ Html.RenderPartial("_Groups", Model.SubGroups); }
    </div>
}